Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.platform.mobile.operation.chain.contrib--chains

This contribution is part of XML component org.nuxeo.platform.mobile.operation.chain.contrib inside nuxeo-web-mobile-cap-7.10.jar /OSGI-INF/web-mobile-operation-chains-contrib.xml

Extension Point

Extension point chains of component OperationServiceComponent.

Contributed Items

  • <chain id="sendEmailToMe">
          <operation id="Context.FetchDocument"/>
          <operation id="Notification.SendMail">
            <param name="from" type="string">noreply@nuxeo.com</param>
            <param name="message" type="string">
              &lt;html&gt;
                &lt;head&gt;
                &lt;/head&gt;
                &lt;body&gt;
                  You asked to send an email to your own email account.
                  You will find files attached to this email.
                  &lt;br/&gt;
                  Original document is &lt;a href="${docUrl}"&gt;${Document['dc:title']}&lt;/a&gt;. 
                  &lt;br/&gt;
                  Sent from Nuxeo.
                &lt;/body&gt;
              &lt;/html&gt;
            </param>
            <param name="subject" type="string">[Nuxeo] MailMe Service - new Binary sent</param>
            <param name="to" type="stringlist">expr:Fn.getEmail(Context.principal.name)</param>
            <param name="HTML" type="boolean">true</param>
            <param name="files" type="stringlist">file:content</param>
            <param name="viewId" type="string">view_documents</param>
          </operation>
        </chain>

XML Source

<extension point="chains" target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
    <chain id="sendEmailToMe">
      <operation id="Context.FetchDocument"/>
      <operation id="Notification.SendMail">
        <param name="from" type="string">noreply@nuxeo.com</param>
        <param name="message" type="string">
          &lt;html&gt;
            &lt;head&gt;
            &lt;/head&gt;
            &lt;body&gt;
              You asked to send an email to your own email account.
              You will find files attached to this email.
              &lt;br/&gt;
              Original document is &lt;a href="${docUrl}"&gt;${Document['dc:title']}&lt;/a&gt;. 
              &lt;br/&gt;
              Sent from Nuxeo.
            &lt;/body&gt;
          &lt;/html&gt;
        </param>
        <param name="subject" type="string">[Nuxeo] MailMe Service - new Binary sent</param>
        <param name="to" type="stringlist">expr:Fn.getEmail(Context.principal.name)</param>
        <param name="HTML" type="boolean">true</param>
        <param name="files" type="stringlist">file:content</param>
        <param name="viewId" type="string">view_documents</param>
      </operation>
    </chain>
  </extension>